import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:wallpaper/components/z_video/zsn_video.dart';

class VideoList extends StatelessWidget {
  final String videoUrl;
  final String videoTitle;
  const VideoList(
      {super.key, required this.videoUrl, required this.videoTitle});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        toolbarHeight: 0,
        elevation: 0,
        backgroundColor: Colors.black,
        systemOverlayStyle: SystemUiOverlayStyle(
          statusBarColor: Colors.black,
          statusBarIconBrightness: Brightness.light,
        ),
      ),
      body: Center(
        child: ZsnVideo(
          videoUrl: videoUrl,
          title: videoTitle,
          // 屏幕高度
          height: MediaQuery.of(context).size.height,
        ),
      ),
    );
  }
}
